﻿using AugustSql;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp1
{
    [Table("CellInfomation4")]
    public class CellInfomation : SqlInformationBase
    {
        [Colum(IsSerchKey = true)]
        public DateTime Time { get; set; }
        [Description("单元名称")]
        public string CellName { get; set; }
        [Description("时间")]
        public string DateTime { get; set; }
        [Description("值")]
        public string CellValue { get; set; }
        [Description("类型")]
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string CellType { get; set; }
        [Description("类型2")]
        public string CellType1 { get; set; }
        [Colum(Length = 800)]
        [Description("信息")]
        public string CellType555 { get; set; }
    }

    public class CellInfomationRepo : SqlInformationCollection<CellInfomation>
    {

    }

    [Table("steprecipebasic")]
    public class StepRecipeBasic : SqlInformationBase
    {
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string Name { get; set; }
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string StepRecipeNo { get; set; }
        [Colum(IsSerchKey = true, Type = SqlValueType.VARCHAR , Length =255)]
        public string BindModuleNo { get; set; }
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string Version { get; set; }
        public int? CreateType { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string Creater { get; set; }
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string Updater { get; set; }
        [Colum(Type = SqlValueType.TINYINT, Length = 1)]
        public bool Enable { get; set; }
        [Colum(Type = SqlValueType.LONGTEXT)]
        public string Remark { get; set; }
        [Colum(Type = SqlValueType.TINYINT, Length =1)]
        public bool? IsMain { get; set; }
        [Colum(Type = SqlValueType.TINYINT, Length = 1)]
        public bool? IsProduct { get; set; }
    }

    public class StepRecipeBasicRepo : SqlInformationCollection<StepRecipeBasic>
    {

    }
}